<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="com.joshua.ticket.utils.LoingedUser"%>
<%@ page import="com.joshua.userservice.models.Menu"%>

<script>
	//menu
	jQuery(document).ready(function() {
		jQuery('#menus > li').each(function() {
			jQuery(this).hover(

			function() {
				jQuery(this).find('ul:eq(0)').show();
			},

			function() {
				jQuery(this).find('ul:eq(0)').hide();
			}

			);
		});
	});
</script>

<link href="/ticket-manager/css/menu_style.css" rel="stylesheet"
	type="text/css" />

<div id="header_index">
	<h1>
		<a href="/index.html" title="w3school 在线教程">w3school 在线教程</a>
	</h1>
</div>

<div id="navfirst">
	<div id="menubar">
		<ul id="menus" class="menus">
			<li><a title="Home" href="../">All demos</a></li>
			<%
/* 				Menu root = (Menu) application.getAttribute("rootMenu");
				LoingedUser user = (LoingedUser) session.getAttribute("LOGIN_USER");
				for (Menu menu : root.getChildrenMenus()) {

					if (user.getMenuCodes().contains(menu.getCode())) {

						out.println(String.format(
								"<li><a href=\"%s\" title=\"%s\">%s</a>",
								menu.getUrl(), menu.getDisplayName(),
								menu.getDisplayName()));
						out.println("<ul class=\"children\">");
						for (Menu level2menu : menu.getChildrenMenus()) {

							if (user.getMenuCodes().contains(level2menu.getCode())) {
								out.println(String
										.format("<li><a href=\"%s\" title=\"%s\">%s</a><li>",
												level2menu.getUrl(),
												level2menu.getDisplayName(),
												level2menu.getDisplayName()));
							}

						}
						out.println("</ul>");
						out.println("</li>");
					}
				} */
			%>

			<!-- <li><a href="javascript:void(0);" title="Geography">Geography</a>
				<ul class="children">
					<li><a href="/ticket-manager/continent/index.do"
						title="查看Continent">Continent</a></li>
					<li><a href="/ticket-manager/country/index.do"
						title="查看Country">Country</a></li>
					<li><a href="/ticket-manager/state/index.do" title="查看State">State</a></li>
				</ul></li> -->
		</ul>
	</div>
	<div style="clear: both;"></div>
</div>